﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace EC.Entity.Response.Bank
{
    public class ValidateCardResponse
    {
        [JsonPropertyName("cardType")]
        public string CardType { get; set; }

        [JsonPropertyName("bank")]
        public string Bank { get; set; }

        [JsonPropertyName("key")]
        public string Key { get; set; }

        [JsonPropertyName("validated")]
        public bool Validated { get; set; }

        [JsonPropertyName("messages")]
        public ErrorMessage[] Messages { get; set; }

        [JsonPropertyName("stat")]
        public string Stat { get; set; }
    }

    public class ErrorMessage
    {

        [JsonPropertyName("errorCodes")]
        public string ErrorCodes { get; set; }

        [JsonPropertyName("name")]
        public string Name { get; set; }
    }
}
